package com.han.methodlog.config;

import com.han.methodlog.entity.Email;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;

@Configuration
public class QueueConfig {

    @Bean
    public BlockingQueue<Email> emailRetryQueue(){
     return new LinkedBlockingQueue<Email>();
    }

}
